<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>热榜</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/swiper.css" />
    <style>
        header {
            width: 100%;
            height: 280px;
            background: url(../../image/hot_list_bg.png) no-repeat;
            background-size: 100% 100%;
        }

        .header_inner {
            width: 100%;
            height: 44px;
        }

        .title {
            width: 100%;
            padding: 0 140px;
            text-align: center;
            white-space: nowrap;
            line-height: 44px;
            overflow: hidden;
            text-overflow: ellipsis;
            z-index: 2;
            color: #fff;
            font-size: 17px;
        }

        header a {
            display: block;
            width: 44px;
            height: 44px;
            background: url(../../image/white_back.png) no-repeat;
            background-size: 22px 22px;
            background-position: center;
            position: absolute;
        }

        .nav {
            width: 100%;
            padding: 0 80px;
            margin-top: 15px;
            display: flex;
            justify-content: space-between;
            box-sizing: border-box;
            overflow: hidden;
        }

        .nav .nav-menu {
            width: auto;
            font-size: 14px;
            color: #FFFFFF;
            letter-spacing: 0;
            /*text-align: center;*/
            /*padding-right: 22.5px;*/
            /* padding-top: 10px; */
        }

        .nav .nav-menu span {
            /*width: auto;*/
            display: block;
        }

        .nav .nav-menu span:first-child {
            /*width: 60px;*/
            height: 17px;
            line-height: 17px;
            color: #fff;
            /*border: 1px solid yellow;*/
        }

        .nav .nav-menu span.selected {
            font-size: 16px;
            height: 17px;
            /*font-weight: bold;*/
            line-height: 17px;
            /*background: linear-gradient(266deg, #BF14FD, #7D0DFC);*/
            /*border-radius: 10px;*/
            /*padding: 0 8px;*/
        }

        .nav .nav-menu span.selected_line {
            width: 100%;
            height: 2px;
            background: #fff;
            margin: 0 auto;
            margin-top: 2px;
            border-radius: 1px;
        }

        .rank {
            width: 100%;
            padding: 0 15px;
            box-sizing: border-box;
            overflow: hidden;
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        .rank_t {
            position: relative;
        }

        .rank_t_inner {
            width: auto;
            overflow: hidden;
            background: #FFFFFF;
            border-radius: 5px;
            padding: 5px;
            box-sizing: border-box;
            margin-top: 21px;
        }

        .icon_1 {
            width: 35px;
            height: 21px;
            border: 1px solid red;
            position: absolute;
            left: 50%;
            margin-left: -17.5px;
            top: 5px;
        }

        .goodspicture {
            width: 100px;
            height: 100px;
            border-radius: 5px;
            border: 1px solid yellow;
        }

        .goodspicture img {
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 5px;
        }

        .amount {
            width: 100%;
            height: 18px;
            background: linear-gradient(-90deg, #7619EC, #A429F3);
            border-radius: 18px;
            text-align: center;
            font-size: 12px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #FFFFFF;
        }

        .rank_t_inner>.Title {
            width: 100%;
            height: 13px;
            font-size: 12px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #444444;
            line-height: 13px;
            margin-top: 4px;
        }
        .rank_t_inner>.price {
            width: 100%;
            overflow: hidden;
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
        }

        .rank_t_inner>.price .price_item {
            display: flex;
            width: auto;
        }

        .rank_t_inner>.price .price_item:last-child {
            height: 15px;
            font-size: 14px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #999999;
            line-height: 15px;
        }

        .rank_t_inner>.price .price_item span:nth-child(1) {
            width: auto;
            height: 15px;
            font-size: 10px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #999999;
            line-height: 17px;
        }

        .rank_t_inner>.price .price_item span:nth-child(2) {
            width: auto;
            height: 15px;
            font-size: 10px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #FF4242;
            line-height: 17px;
        }

        .rank_t_inner>.price .price_item span:nth-child(3) {
            width: auto;
            height: 15px;
            font-size: 14px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #FF4242;
            line-height: 15px;
        }
    </style>
</head>

<body>
    <header id="app">
        <div class="header_inner">
            <a tapmode @click="closeWin()"></a>
            <div class="title">热榜</div>
        </div>
        <div class="nav">
            <div class="nav-menu" v-for='(item,index) in navlist'>
                <span :class="{'selected':isActive==index}" tapmode @click="change(index,item.id)">{{item}}</span>
                <span :class="{'selected_line':isActive==index}"></span>
            </div>
        </div>

        <div class="rank">
            <div class="rank_t" style="margin-top:20px;">
                <div class="icon_1"><img src="../../image/dsm.png" alt=""></div>
                <div class="rank_t_inner">
                    <div class="goodspicture"></div>
                    <div class="amount">2小时疯抢9000件</div>
                    <div class="aui-ellipsis-1 Title">花西子空气蜜粉...</div>
                    <div class="price">
                        <div class="price_item"><span>券后</span><span>￥</span><span>20</span></div>
                        <div class="price_item"></div>
                    </div>
                </div>

            </div>
            <div class="rank_t">
                <div class="icon_1"><img src="../../image/dym.png" alt=""></div>
                <div class="rank_t_inner">
                    <div class="goodspicture"></div>
                    <div class="amount">2小时疯抢9000件</div>
                    <div class="aui-ellipsis-1 Title">花西子空气蜜粉...</div>
                    <div class="price">
                        <div class="price_item"><span>券后</span><span>￥</span><span>20</span></div>
                        <div class="price_item"></div>
                    </div>
                </div>

            </div>
            <div class="rank_t" style="margin-top:20px;">
                <div class="icon_1"><img src="../../image/dem.png" alt=""></div>
                <div class="rank_t_inner">
                    <div class="goodspicture"></div>
                    <div class="amount">2小时疯抢9000件</div>
                    <div class="aui-ellipsis-1 Title">花西子空气蜜粉...</div>
                    <div class="price">
                        <div class="price_item"><span>券后</span><span>￥</span><span>20</span></div>
                        <div class="price_item"></div>
                    </div>
                </div>

            </div>
        </div>
    </header>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.js"></script>
<script type="text/javascript" src="../../script/cling.js"></script>
<script type="text/javascript" src="../../script/swiper.js"></script>

<script type="text/javascript">
    apiready = function() {
        var header = $api.byId('app');
        var headerH = $api.fixStatusBar(header);

    };
    var vm = new Vue({
        el: "#app",
        data: {
            isActive: 0,
            navlist: ['实时榜', '全天榜']
        },
        methods: {
            change: function(index) {
                vm.isActive = index;
            }
        }
    })
</script>

</html>
